package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author pml
 * @Date 2025/6/18 22:54
 * @Description TODO
 * 登录日志实体类，与数据库表sys_login_log映射
 * 使用Lombok的@Data注解减少getter/setter模板代码
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_login_log")
public class SysLoginLog {
    @TableId(type = IdType.AUTO)
    private Integer loginLogId;
    private Integer userId;
    private LocalDateTime loginTime;
    private String loginIp;
    private Integer loginStatus; // 0-失败,1-成功
    private String loginMethod; // password/captcha/etc
    private String deviceInfo;
    private String browserInfo;
    private String remark;
    private LocalDateTime createTime;
    private String creator;
    private LocalDateTime updateTime;
    private String updater;
}
